Skip to content

[Workflow] Use subject to fetch state_machine #9613

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2018

Conversation

Matth--
Copy link
Contributor

@Matth-- Matth-- commented Apr 17, 2018

Not using the subject to fetch the stateMachine will throw an ErrorException because the first argument passed to the get-method is a string and not an object.

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! The code is clear about this: https://github.com/symfony/workflow/blob/195fc22bc7591528a5f769c2c75f12203e16afed/Registry.php#L49 Thanks for fixing it and congrats on your first Symfony Docs contribution!

@javiereguiluz javiereguiluz added this to the 4.0 milestone Apr 18, 2018
@javiereguiluz javiereguiluz merged commit 279a9c1 into symfony:4.0 Apr 18, 2018
javiereguiluz added a commit that referenced this pull request Apr 18, 2018
This PR was merged into the 4.0 branch.

Discussion
----------

[Workflow] Use subject to fetch state_machine

Not using the subject to fetch the stateMachine will throw an ErrorException  because the first argument passed to the get-method is a string and not an object.

Commits
-------

279a9c1 [Workflow] Use subject to fetch state_machine
@Matth-- Matth-- deleted the patch_workflow_state_machine branch April 18, 2018 07:41
@Matth--
Copy link
Contributor Author

Matth-- commented Apr 20, 2018

Thanks @javiereguiluz!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants